
KERNEL_PATH = ../../kernel
ROOTFS_PATH = ../../rootfs/home/drivers

obj-m +=mma8653_drv.o

all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	cp *.ko $(ROOTFS_PATH) 
	arm-cortex_a9-linux-gnueabi-gcc test.c -o test
	cp test $(ROOTFS_PATH)/../bin 
clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean
